package admin

import "oc_saas/model/base"

// 应用表
type Application struct {
	base.IDColumn
	Name           string       `json:"name" gorm:"not null;default:'';type:varchar(10);size:10;comment:应用名称"`
	ApplicationTag string       `json:"application_tag" gorm:"type:varchar(64);size:64;not null;uniqueIndex;comment:应用唯一标识"`
	Path           string       `json:"path" gorm:"column:path;type:varchar(10);size:10;not null;uniqueIndex;comment:应用的路径"`
	TenancyDBList  []*TenancyDB `json:"children" gorm:"foreignKey:ApplicationID;reference:ID;constraint:OnDelete:CASCADE"`
}
